package com.qf.Listener.work;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class testFanoutLis {
    @RabbitListener(queues = {"ps1"})
    public void consum(String message){
        System.out.println("消费了队列+++++++++++++++1"+message);
    }
}
